<template>
  <div class="home" style="z-index:1222">
<button @click="goTarget('/index')">返回主页</button>
  </div>
</template>

<script>
export default {
  name: "Index",
  data() {
    return {
      // 版本号
      version: "3.8.7",
      url:process.env.VUE_APP_BASE_API,
   
     
    };
  },
mounted() {
    this.$store.dispatch('app/toggleSideBarHide', true);
    document.querySelector('.navbar').style.display = "none";
    document.querySelector('.tags-view-container').style.display = "none"
  },

  methods: {
    goTarget(href) {
        // let newHref = this.url + href;
        // console.log(newHref)
                window.location.href = href;
        //  window.open(href);          
    }}
  }
</script>

<style scoped lang="scss">
.home{
  position: fixed;top: 0;
// margin-top: -10px;
}
</style>

